home *** CD-ROM | disk | FTP | other *** search
/ Apple Software Dispatch / Apple Software Dispatch.iso / Software Dispatch Files / Oregon Trail / Sample Application / Sample Application.rsrc / CDEF_8_Page.txt < prev    next >
Text File  |  1993-06-23  |  26KB  |  489 lines

  1. start:
  2. 00000000  4E56 FFC6                link       A6, -0x003A
  3. 00000004  48E7 0F18                movem.l    -[A7], D4,D5,D6,D7,A3,A4
  4. 00000008  4207                     clr.b      D7
  5. 0000000A  7C00                     moveq.l    D6, 0x00
  6. 0000000C  486E FFDE                pea.l      [A6 - 0x22]
  7. 00000010  A898                     syscall    GetPenState
  8. 00000012  A89E                     syscall    PenNormal
  9. 00000014  2F2E 000E                move.l     -[A7], [A6 + 0xE]
  10. 00000018  4EBA 0464                jsr        [PC + 0x464 /* 0000047E */]
  11. 0000001C  206E 000E                movea.l    A0, [A6 + 0xE]
  12. 00000020  2650                     movea.l    A3, [A0]
  13. 00000022  302B 000C                move.w     D0, [A3 + 0xC]
  14. 00000026  48C0                     ext.l      D0
  15. 00000028  322B 0008                move.w     D1, [A3 + 0x8]
  16. 0000002C  48C1                     ext.l      D1
  17. 0000002E  2800                     move.l     D4, D0
  18. 00000030  9881                     sub.l      D4, D1
  19. 00000032  41EE FFF4                lea.l      A0, [A6 - 0xC]
  20. 00000036  224B                     movea.l    A1, A3
  21. 00000038  5089                     addq.l     A1, 8
  22. 0000003A  20D9                     move.l     [A0]+, [A1]+
  23. 0000003C  20D9                     move.l     [A0]+, [A1]+
  24. 0000003E  302E FFFA                move.w     D0, [A6 - 0x6]
  25. 00000042  48C0                     ext.l      D0
  26. 00000044  322E FFF6                move.w     D1, [A6 - 0xA]
  27. 00000048  48C1                     ext.l      D1
  28. 0000004A  9081                     sub.l      D0, D1
  29. 0000004C  D16E FFFA                add.w      [A6 - 0x6], D0
  30. 00000050  302E 000C                move.w     D0, [A6 + 0xC]
  31. 00000054  6716                     beq        +0x18 /* 0000006C */
  32. 00000056  5340                     subq.w     D0, 1
  33. 00000058  6700 023A                beq        +0x23C /* 00000294 */
  34. 0000005C  5340                     subq.w     D0, 1
  35. 0000005E  6700 02B8                beq        +0x2BA /* 00000318 */
  36. 00000062  5140                     subq.w     D0, 8
  37. 00000064  6700 02CC                beq        +0x2CE /* 00000332 */
  38. 00000068  6000 02D2                bra        +0x2D4 /* 0000033C */
  39. label0000006C:
  40. 0000006C  4A2B 0010                tst.b      [A3 + 0x10]
  41. 00000070  6700 02CA                beq        +0x2CC /* 0000033C */
  42. 00000074  387C 028E                movea.w    A4, 0x28E
  43. 00000078  7000                     moveq.l    D0, 0x00
  44. 0000007A  3014                     move.w     D0, [A4]
  45. 0000007C  0C80 0000 3FFF           cmpi.l     D0, 0x3FFF
  46. 00000082  622A                     bhi        +0x2C /* 000000AE */
  47. 00000084  7E01                     moveq.l    D7, 0x01
  48. 00000086  486E FFD8                pea.l      [A6 - 0x28]
  49. 0000008A  AA19                     syscall    GetForeColor
  50. 0000008C  486E FFD2                pea.l      [A6 - 0x2E]
  51. 00000090  AA1A                     syscall    GetBackColor
  52. 00000092  558F                     subq.l     A7, 2
  53. 00000094  2F2E 000E                move.l     -[A7], [A6 + 0xE]
  54. 00000098  486E FFC6                pea.l      [A6 - 0x3A]
  55. 0000009C  AA44                     syscall    GetAuxiliaryControlRecord/GetAuxCtl
  56. 0000009E  2F2E FFC6                move.l     -[A7], [A6 - 0x3A]
  57. 000000A2  4EBA 03DA                jsr        [PC + 0x3DA /* 0000047E */]
  58. 000000A6  206E FFC6                movea.l    A0, [A6 - 0x3A]
  59. 000000AA  2850                     movea.l    A4, [A0]
  60. 000000AC  548F                     addq.l     A7, 2
  61. label000000AE:
  62. 000000AE  4A07                     tst.b      D7
  63. 000000B0  6710                     beq        +0x12 /* 000000C2 */
  64. 000000B2  7001                     moveq.l    D0, 0x01
  65. 000000B4  2F00                     move.l     -[A7], D0
  66. 000000B6  2F0C                     move.l     -[A7], A4
  67. 000000B8  4EBA 02B0                jsr        [PC + 0x2B0 /* 0000036A */]
  68. 000000BC  508F                     addq.l     A7, 8
  69. 000000BE  2F00                     move.l     -[A7], D0
  70. 000000C0  AA15                     syscall    RGBBackColor
  71. label000000C2:
  72. 000000C2  486B 0008                pea.l      [A3 + 0x8]
  73. 000000C6  A8A3                     syscall    EraseRect
  74. 000000C8  4A07                     tst.b      D7
  75. 000000CA  6710                     beq        +0x12 /* 000000DC */
  76. 000000CC  7000                     moveq.l    D0, 0x00
  77. 000000CE  2F00                     move.l     -[A7], D0
  78. 000000D0  2F0C                     move.l     -[A7], A4
  79. 000000D2  4EBA 0296                jsr        [PC + 0x296 /* 0000036A */]
  80. 000000D6  508F                     addq.l     A7, 8
  81. 000000D8  2F00                     move.l     -[A7], D0
  82. 000000DA  AA14                     syscall    RGBForeColor
  83. label000000DC:
  84. 000000DC  486B 0008                pea.l      [A3 + 0x8]
  85. 000000E0  A8A1                     syscall    FrameRect
  86. 000000E2  302B 000E                move.w     D0, [A3 + 0xE]
  87. 000000E6  48C0                     ext.l      D0
  88. 000000E8  5380                     subq.l     D0, 1
  89. 000000EA  3F00                     move.w     -[A7], D0
  90. 000000EC  302B 000C                move.w     D0, [A3 + 0xC]
  91. 000000F0  48C0                     ext.l      D0
  92. 000000F2  5380                     subq.l     D0, 1
  93. 000000F4  3F00                     move.w     -[A7], D0
  94. 000000F6  A893                     syscall    MoveTo
  95. 000000F8  302B 000A                move.w     D0, [A3 + 0xA]
  96. 000000FC  48C0                     ext.l      D0
  97. 000000FE  5280                     addq.l     D0, 1
  98. 00000100  3F00                     move.w     -[A7], D0
  99. 00000102  302B 0008                move.w     D0, [A3 + 0x8]
  100. 00000106  48C0                     ext.l      D0
  101. 00000108  5280                     addq.l     D0, 1
  102. 0000010A  3F00                     move.w     -[A7], D0
  103. 0000010C  A891                     syscall    LineTo
  104. 0000010E  7000                     moveq.l    D0, 0x00
  105. 00000110  102B 0011                move.b     D0, [A3 + 0x11]
  106. 00000114  7201                     moveq.l    D1, 0x01
  107. 00000116  B280                     cmp.l      D1, D0
  108. 00000118  670E                     beq        +0x10 /* 00000128 */
  109. 0000011A  7000                     moveq.l    D0, 0x00
  110. 0000011C  102B 0011                move.b     D0, [A3 + 0x11]
  111. 00000120  7202                     moveq.l    D1, 0x02
  112. 00000122  B280                     cmp.l      D1, D0
  113. 00000124  6600 00FA                bne        +0xFC /* 00000220 */
  114. label00000128:
  115. 00000128  598F                     subq.l     A7, 4
  116. 0000012A  A8D8                     syscall    NewRgn
  117. 0000012C  2D5F FFF0                move.l     [A6 - 0x10], [A7]+
  118. 00000130  A8DA                     syscall    OpenRgn
  119. 00000132  7000                     moveq.l    D0, 0x00
  120. 00000134  102B 0011                move.b     D0, [A3 + 0x11]
  121. 00000138  7201                     moveq.l    D1, 0x01
  122. 0000013A  B280                     cmp.l      D1, D0
  123. 0000013C  665A                     bne        +0x5C /* 00000198 */
  124. 0000013E  302B 000A                move.w     D0, [A3 + 0xA]
  125. 00000142  48C0                     ext.l      D0
  126. 00000144  5280                     addq.l     D0, 1
  127. 00000146  3F00                     move.w     -[A7], D0
  128. 00000148  302B 0008                move.w     D0, [A3 + 0x8]
  129. 0000014C  48C0                     ext.l      D0
  130. 0000014E  5480                     addq.l     D0, 2
  131. 00000150  3F00                     move.w     -[A7], D0
  132. 00000152  A893                     syscall    MoveTo
  133. 00000154  302B 000A                move.w     D0, [A3 + 0xA]
  134. 00000158  48C0                     ext.l      D0
  135. 0000015A  5280                     addq.l     D0, 1
  136. 0000015C  3F00                     move.w     -[A7], D0
  137. 0000015E  302B 000C                move.w     D0, [A3 + 0xC]
  138. 00000162  48C0                     ext.l      D0
  139. 00000164  5380                     subq.l     D0, 1
  140. 00000166  3F00                     move.w     -[A7], D0
  141. 00000168  A891                     syscall    LineTo
  142. 0000016A  302B 000E                move.w     D0, [A3 + 0xE]
  143. 0000016E  48C0                     ext.l      D0
  144. 00000170  5380                     subq.l     D0, 1
  145. 00000172  3F00                     move.w     -[A7], D0
  146. 00000174  302B 000C                move.w     D0, [A3 + 0xC]
  147. 00000178  48C0                     ext.l      D0
  148. 0000017A  5380                     subq.l     D0, 1
  149. 0000017C  3F00                     move.w     -[A7], D0
  150. 0000017E  A891                     syscall    LineTo
  151. 00000180  302B 000A                move.w     D0, [A3 + 0xA]
  152. 00000184  48C0                     ext.l      D0
  153. 00000186  5280                     addq.l     D0, 1
  154. 00000188  3F00                     move.w     -[A7], D0
  155. 0000018A  302B 0008                move.w     D0, [A3 + 0x8]
  156. 0000018E  48C0                     ext.l      D0
  157. 00000190  5480                     addq.l     D0, 2
  158. 00000192  3F00                     move.w     -[A7], D0
  159. 00000194  A891                     syscall    LineTo
  160. 00000196  6058                     bra        +0x5A /* 000001F0 */
  161. label00000198:
  162. 00000198  302B 000A                move.w     D0, [A3 + 0xA]
  163. 0000019C  48C0                     ext.l      D0
  164. 0000019E  5280                     addq.l     D0, 1
  165. 000001A0  3F00                     move.w     -[A7], D0
  166. 000001A2  302B 0008                move.w     D0, [A3 + 0x8]
  167. 000001A6  48C0                     ext.l      D0
  168. 000001A8  5280                     addq.l     D0, 1
  169. 000001AA  3F00                     move.w     -[A7], D0
  170. 000001AC  A893                     syscall    MoveTo
  171. 000001AE  302B 000E                move.w     D0, [A3 + 0xE]
  172. 000001B2  48C0                     ext.l      D0
  173. 000001B4  5380                     subq.l     D0, 1
  174. 000001B6  3F00                     move.w     -[A7], D0
  175. 000001B8  302B 0008                move.w     D0, [A3 + 0x8]
  176. 000001BC  48C0                     ext.l      D0
  177. 000001BE  5280                     addq.l     D0, 1
  178. 000001C0  3F00                     move.w     -[A7], D0
  179. 000001C2  A891                     syscall    LineTo
  180. 000001C4  302B 000E                move.w     D0, [A3 + 0xE]
  181. 000001C8  48C0                     ext.l      D0
  182. 000001CA  5380                     subq.l     D0, 1
  183. 000001CC  3F00                     move.w     -[A7], D0
  184. 000001CE  302B 000C                move.w     D0, [A3 + 0xC]
  185. 000001D2  48C0                     ext.l      D0
  186. 000001D4  5580                     subq.l     D0, 2
  187. 000001D6  3F00                     move.w     -[A7], D0
  188. 000001D8  A891                     syscall    LineTo
  189. 000001DA  302B 000A                move.w     D0, [A3 + 0xA]
  190. 000001DE  48C0                     ext.l      D0
  191. 000001E0  5280                     addq.l     D0, 1
  192. 000001E2  3F00                     move.w     -[A7], D0
  193. 000001E4  302B 0008                move.w     D0, [A3 + 0x8]
  194. 000001E8  48C0                     ext.l      D0
  195. 000001EA  5280                     addq.l     D0, 1
  196. 000001EC  3F00                     move.w     -[A7], D0
  197. 000001EE  A891                     syscall    LineTo
  198. label000001F0:
  199. 000001F0  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  200. 000001F4  A8DB                     syscall    CloseRgn
  201. 000001F6  4A07                     tst.b      D7
  202. 000001F8  6718                     beq        +0x1A /* 00000212 */
  203. 000001FA  7002                     moveq.l    D0, 0x02
  204. 000001FC  2F00                     move.l     -[A7], D0
  205. 000001FE  2F0C                     move.l     -[A7], A4
  206. 00000200  4EBA 0168                jsr        [PC + 0x168 /* 0000036A */]
  207. 00000204  508F                     addq.l     A7, 8
  208. 00000206  2F00                     move.l     -[A7], D0
  209. 00000208  AA14                     syscall    RGBForeColor
  210. 0000020A  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  211. 0000020E  A8D3                     syscall    PaintRgn
  212. 00000210  6006                     bra        +0x8 /* 00000218 */
  213. label00000212:
  214. 00000212  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  215. 00000216  A8D5                     syscall    InverRgn/InvertRgn
  216. label00000218:
  217. 00000218  2F2E FFF0                move.l     -[A7], [A6 - 0x10]
  218. 0000021C  A8D9                     syscall    DisposRgn/DisposeRgn
  219. 0000021E  6056                     bra        +0x58 /* 00000276 */
  220. label00000220:
  221. 00000220  7000                     moveq.l    D0, 0x00
  222. 00000222  102B 0011                move.b     D0, [A3 + 0x11]
  223. 00000226  0C80 0000 00FF           cmpi.l     D0, 0xFF
  224. 0000022C  6648                     bne        +0x4A /* 00000276 */
  225. 0000022E  4A07                     tst.b      D7
  226. 00000230  6720                     beq        +0x22 /* 00000252 */
  227. 00000232  7002                     moveq.l    D0, 0x02
  228. 00000234  2F00                     move.l     -[A7], D0
  229. 00000236  2F0C                     move.l     -[A7], A4
  230. 00000238  4EBA 0130                jsr        [PC + 0x130 /* 0000036A */]
  231. 0000023C  508F                     addq.l     A7, 8
  232. 0000023E  2F00                     move.l     -[A7], D0
  233. 00000240  AA14                     syscall    RGBForeColor
  234. 00000242  7001                     moveq.l    D0, 0x01
  235. 00000244  2F00                     move.l     -[A7], D0
  236. 00000246  2F0C                     move.l     -[A7], A4
  237. 00000248  4EBA 0120                jsr        [PC + 0x120 /* 0000036A */]
  238. 0000024C  508F                     addq.l     A7, 8
  239. 0000024E  2F00                     move.l     -[A7], D0
  240. 00000250  AA15                     syscall    RGBBackColor
  241. label00000252:
  242. 00000252  2D7C AA55 AA55 FFCA      move.l     [A6 - 0x36], 0xAA55AA55
  243. 0000025A  2D7C AA55 AA55 FFCE      move.l     [A6 - 0x32], 0xAA55AA55
  244. 00000262  486E FFCA                pea.l      [A6 - 0x36]
  245. 00000266  A89D                     syscall    PenPat
  246. 00000268  700B                     moveq.l    D0, 0x0B
  247. 0000026A  3F00                     move.w     -[A7], D0
  248. 0000026C  A89C                     syscall    PenMode
  249. 0000026E  486B 0008                pea.l      [A3 + 0x8]
  250. 00000272  A8A2                     syscall    PaintRect
  251. 00000274  A89E                     syscall    PenNormal
  252. label00000276:
  253. 00000276  4A07                     tst.b      D7
  254. 00000278  6700 00C2                beq        +0xC4 /* 0000033C */
  255. 0000027C  2F2E FFC6                move.l     -[A7], [A6 - 0x3A]
  256. 00000280  4EBA 0206                jsr        [PC + 0x206 /* 00000488 */]
  257. 00000284  486E FFD8                pea.l      [A6 - 0x28]
  258. 00000288  AA14                     syscall    RGBForeColor
  259. 0000028A  486E FFD2                pea.l      [A6 - 0x2E]
  260. 0000028E  AA15                     syscall    RGBBackColor
  261. 00000290  6000 00AA                bra        +0xAC /* 0000033C */
  262. label00000294:
  263. 00000294  2D6E 0008 FFFC           move.l     [A6 - 0x4], [A6 + 0x8]
  264. 0000029A  7000                     moveq.l    D0, 0x00
  265. 0000029C  102B 0011                move.b     D0, [A3 + 0x11]
  266. 000002A0  0C80 0000 00FF           cmpi.l     D0, 0xFF
  267. 000002A6  6700 0094                beq        +0x96 /* 0000033C */
  268. 000002AA  558F                     subq.l     A7, 2
  269. 000002AC  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  270. 000002B0  486B 0008                pea.l      [A3 + 0x8]
  271. 000002B4  A8AD                     syscall    PtInRect
  272. 000002B6  4A1F                     tst.b      [A7]+
  273. 000002B8  6700 0082                beq        +0x84 /* 0000033C */
  274. 000002BC  302B 000E                move.w     D0, [A3 + 0xE]
  275. 000002C0  48C0                     ext.l      D0
  276. 000002C2  322B 000A                move.w     D1, [A3 + 0xA]
  277. 000002C6  48C1                     ext.l      D1
  278. 000002C8  2800                     move.l     D4, D0
  279. 000002CA  9881                     sub.l      D4, D1
  280. 000002CC  302B 000C                move.w     D0, [A3 + 0xC]
  281. 000002D0  48C0                     ext.l      D0
  282. 000002D2  322B 0008                move.w     D1, [A3 + 0x8]
  283. 000002D6  48C1                     ext.l      D1
  284. 000002D8  2A00                     move.l     D5, D0
  285. 000002DA  9A81                     sub.l      D5, D1
  286. 000002DC  302E FFFE                move.w     D0, [A6 - 0x2]
  287. 000002E0  48C0                     ext.l      D0
  288. 000002E2  322B 000A                move.w     D1, [A3 + 0xA]
  289. 000002E6  48C1                     ext.l      D1
  290. 000002E8  9081                     sub.l      D0, D1
  291. 000002EA  322B 000C                move.w     D1, [A3 + 0xC]
  292. 000002EE  48C1                     ext.l      D1
  293. 000002F0  D280                     add.l      D1, D0
  294. 000002F2  302E FFFC                move.w     D0, [A6 - 0x4]
  295. 000002F6  48C0                     ext.l      D0
  296. 000002F8  9280                     sub.l      D1, D0
  297. 000002FA  48C4                     ext.l      D4
  298. 000002FC  48C5                     ext.l      D5
  299. 000002FE  2004                     move.l     D0, D4
  300. 00000300  D085                     add.l      D0, D5
  301. 00000302  2F01                     move.l     -[A7], D1
  302. 00000304  7202                     moveq.l    D1, 0x02
  303. 00000306  4EBA 00D0                jsr        [PC + 0xD0 /* 000003D8 */]
  304. 0000030A  221F                     move.l     D1, [A7]+
  305. 0000030C  B081                     cmp.l      D0, D1
  306. 0000030E  6F04                     ble        +0x6 /* 00000314 */
  307. 00000310  7C01                     moveq.l    D6, 0x01
  308. 00000312  6028                     bra        +0x2A /* 0000033C */
  309. label00000314:
  310. 00000314  7C02                     moveq.l    D6, 0x02
  311. 00000316  6024                     bra        +0x26 /* 0000033C */
  312. label00000318:
  313. 00000318  203C 8000 0000           move.l     D0, 0x80000000
  314. 0000031E  C0AE 0008                and.l      D0, [A6 + 0x8]
  315. 00000322  0C80 8000 0000           cmpi.l     D0, 0x80000000
  316. 00000328  6608                     bne        +0xA /* 00000332 */
  317. 0000032A  02AE 7FFF FFFF 0008      andi.l     [A6 + 0x8], 0x7FFFFFFF
  318. label00000332:
  319. 00000332  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  320. 00000336  486B 0008                pea.l      [A3 + 0x8]
  321. 0000033A  A8DF                     syscall    RectRgn
  322. label0000033C:
  323. 0000033C  2F2E 000E                move.l     -[A7], [A6 + 0xE]
  324. 00000340  4EBA 0146                jsr        [PC + 0x146 /* 00000488 */]
  325. 00000344  486E FFDE                pea.l      [A6 - 0x22]
  326. 00000348  A899                     syscall    SetPenState
  327. 0000034A  2D46 0014                move.l     [A6 + 0x14], D6
  328. 0000034E  4CEE 18F0 FFAE           movem.l    D4,D5,D6,D7,A3,A4, [A6 - 0x52]
  329. 00000354  4E5E                     unlink     A6
  330. 00000356  205F                     movea.l    A0, [A7]+
  331. 00000358  DEFC 000C                add.w      A7, 0xC
  332. 0000035C  4ED0                     jmp        [A0]
  333. 0000035E  8850                     or.w       D4, [A0]
  334. 00000360  4147                     chk.w      D0, D7
  335. 00000362  4543                     chk.w      D2, D3
  336. 00000364  4445                     neg.w      D5
  337. 00000366  4600                     not.b      D0
  338. 00000368  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  339. // begin alternate branch 0000036A-00000372
  340. fn0000036A:
  341. 0000036A  4E56 0000                link       A6, 0
  342. 0000036E  48E7 0318                movem.l    -[A7], D6,D7,A3,A4
  343. // end alternate branch 0000036A-00000372
  344. fn0000036A: // (misaligned)
  345. 0000036C  0000 48E7                ori.b      D0, 0xE7
  346. 00000370  0318                     btst       [A0]+, D1
  347. 00000372  3C2E 000E                move.w     D6, [A6 + 0xE]
  348. 00000376  206E 0008                movea.l    A0, [A6 + 0x8]
  349. 0000037A  2068 0008                movea.l    A0, [A0 + 0x8]
  350. 0000037E  2850                     movea.l    A4, [A0]
  351. 00000380  302C 0006                move.w     D0, [A4 + 0x6]
  352. 00000384  48C0                     ext.l      D0
  353. 00000386  2E00                     move.l     D7, D0
  354. 00000388  5287                     addq.l     D7, 1
  355. 0000038A  48C7                     ext.l      D7
  356. 0000038C  2007                     move.l     D0, D7
  357. 0000038E  E780                     asl        D0, 3
  358. 00000390  47F4 0808                lea.l      A3, [A4 + D0 + 0x8]
  359. 00000394  6016                     bra        +0x18 /* 000003AC */
  360. label00000396:
  361. 00000396  D6FC FFF8                add.w      A3, 0xFFF8
  362. 0000039A  48C6                     ext.l      D6
  363. 0000039C  3013                     move.w     D0, [A3]
  364. 0000039E  48C0                     ext.l      D0
  365. 000003A0  BC80                     cmp.l      D6, D0
  366. 000003A2  6608                     bne        +0xA /* 000003AC */
  367. 000003A4  204B                     movea.l    A0, A3
  368. 000003A6  5488                     addq.l     A0, 2
  369. 000003A8  2008                     move.l     D0, A0
  370. 000003AA  600E                     bra        +0x10 /* 000003BA */
  371. label000003AC:
  372. 000003AC  3007                     move.w     D0, D7
  373. 000003AE  5347                     subq.w     D7, 1
  374. 000003B0  4A40                     tst.w      D0
  375. 000003B2  66E2                     bne        -0x1C /* 00000396 */
  376. 000003B4  41EC 000A                lea.l      A0, [A4 + 0xA]
  377. 000003B8  2008                     move.l     D0, A0
  378. label000003BA:
  379. 000003BA  4CEE 18C0 FFF0           movem.l    D6,D7,A3,A4, [A6 - 0x10]
  380. 000003C0  4E5E                     unlink     A6
  381. 000003C2  4E75                     rts
  382. 000003C4  8847                     or.w       D4, D7
  383. 000003C6  6574                     bcs        +0x76 /* 0000043C */
  384. 000003C8  436F 6C6F                chk.w      D1, [A7 + 0x6C6F]
  385. 000003CC  7200                     moveq.l    D1, 0x00
  386. 000003CE  0000 222F                ori.b      D0, 0x2F /* '/' */
  387. 000003D2  0004 202F                ori.b      D4, 0x2F /* '/' */
  388. 000003D6  0008 4EBA                ori.b      A0, 0xBA
  389. // begin alternate branch 000003D8-000003DE
  390. fn000003D8:
  391. 000003D8  4EBA 000E                jsr        [PC + 0xE /* 000003E8 */]
  392. 000003DC  2001                     move.l     D0, D1
  393. // end alternate branch 000003D8-000003DE
  394. fn000003D8: // (misaligned)
  395. 000003DA  000E 2001                ori.b      A6, 0x1
  396. 000003DE  4E75                     rts
  397. 000003E0  222F 0004                move.l     D1, [A7 + 0x4]
  398. 000003E4  202F 0008                move.l     D0, [A7 + 0x8]
  399. fn000003E8:
  400. 000003E8  48E7 0600                movem.l    -[A7], D5,D6
  401. 000003EC  2A00                     move.l     D5, D0
  402. 000003EE  6A02                     bpl        +0x4 /* 000003F2 */
  403. 000003F0  4480                     neg.l      D0
  404. label000003F2:
  405. 000003F2  2C01                     move.l     D6, D1
  406. 000003F4  6A02                     bpl        +0x4 /* 000003F8 */
  407. 000003F6  4481                     neg.l      D1
  408. label000003F8:
  409. 000003F8  4EBA 001C                jsr        [PC + 0x1C /* 00000416 */]
  410. 000003FC  4A85                     tst.l      D5
  411. 000003FE  6A02                     bpl        +0x4 /* 00000402 */
  412. 00000400  4480                     neg.l      D0
  413. label00000402:
  414. 00000402  BB86                     xor.l      D6, D5
  415. 00000404  6A02                     bpl        +0x4 /* 00000408 */
  416. 00000406  4481                     neg.l      D1
  417. label00000408:
  418. 00000408  4CDF 0060                movem.l    D5,D6, [A7]+
  419. 0000040C  4E75                     rts
  420. 0000040E  222F 0004                move.l     D1, [A7 + 0x4]
  421. 00000412  202F 0008                move.l     D0, [A7 + 0x8]
  422. fn00000416:
  423. 00000416  48E7 3800                movem.l    -[A7], D2,D3,D4
  424. 0000041A  2401                     move.l     D2, D1
  425. 0000041C  4842                     swap.w     D2
  426. 0000041E  4A42                     tst.w      D2
  427. 00000420  661C                     bne        +0x1E /* 0000043E */
  428. 00000422  3600                     move.w     D3, D0
  429. 00000424  4240                     clr.w      D0
  430. 00000426  4840                     swap.w     D0
  431. 00000428  6704                     beq        +0x6 /* 0000042E */
  432. 0000042A  80C1                     divu.w     D0, D1
  433. 0000042C  3400                     move.w     D2, D0
  434. label0000042E:
  435. 0000042E  4842                     swap.w     D2
  436. 00000430  3003                     move.w     D0, D3
  437. 00000432  80C1                     divu.w     D0, D1
  438. 00000434  3400                     move.w     D2, D0
  439. 00000436  2202                     move.l     D1, D2
  440. 00000438  4240                     clr.w      D0
  441. 0000043A  4840                     swap.w     D0
  442. label0000043C:
  443. 0000043C  6022                     bra        +0x24 /* 00000460 */
  444. label0000043E:
  445. 0000043E  2400                     move.l     D2, D0
  446. 00000440  4240                     clr.w      D0
  447. 00000442  4840                     swap.w     D0
  448. 00000444  4842                     swap.w     D2
  449. 00000446  4242                     clr.w      D2
  450. 00000448  2601                     move.l     D3, D1
  451. 0000044A  7200                     moveq.l    D1, 0x00
  452. 0000044C  780F                     moveq.l    D4, 0x0F
  453. label0000044E:
  454. 0000044E  D482                     add.l      D2, D2
  455. 00000450  D180                     addx.l     D0, D0
  456. 00000452  D281                     add.l      D1, D1
  457. 00000454  B083                     cmp.l      D0, D3
  458. 00000456  6504                     bcs        +0x6 /* 0000045C */
  459. 00000458  9083                     sub.l      D0, D3
  460. 0000045A  5201                     addq.b     D1, 1
  461. label0000045C:
  462. 0000045C  51CC FFF0                dbf        D4, -0x12 /* 0000044E */
  463. label00000460:
  464. 00000460  4CDF 001C                movem.l    D2,D3,D4, [A7]+
  465. 00000464  4E75                     rts
  466. 00000466  225F                     movea.l    A1, [A7]+
  467. 00000468  201F                     move.l     D0, [A7]+
  468. 0000046A  A04C                     syscall    CompactMem
  469. 0000046C  2E80                     move.l     [A7], D0
  470. 0000046E  4E71                     nop
  471. 00000470  7000                     moveq.l    D0, 0x00
  472. label00000472:
  473. 00000472  2F09                     move.l     -[A7], A1
  474. label00000474:
  475. 00000474  31C0 0220                move.w     [0x00000220 /* MemErr */], D0
  476. 00000478  4E75                     rts
  477. 0000047A  7000                     moveq.l    D0, 0x00
  478. 0000047C  60F6                     bra        -0x8 /* 00000474 */
  479. fn0000047E:
  480. 0000047E  225F                     movea.l    A1, [A7]+
  481. 00000480  205F                     movea.l    A0, [A7]+
  482. 00000482  A029                     syscall    HLock
  483. 00000484  4EFA FFEC                jmp        [PC - 0x14 /* 00000472 */]
  484. fn00000488:
  485. 00000488  225F                     movea.l    A1, [A7]+
  486. 0000048A  205F                     movea.l    A0, [A7]+
  487. 0000048C  A02A                     syscall    HUnlock
  488. 0000048E  4EFA FFE2                jmp        [PC - 0x1E /* 00000472 */]
  489.